BX.namespace("BX.UI");if(typeof BX.UI.EditorTextHelper==="undefined"){BX.UI.EditorTextHelper=function(){};BX.UI.EditorTextHelper.prototype={selectAll:function(e){if(!(BX.type.isElementNode(e)&&e.value.length>0)){return}if(BX.type.isFunction(e.setSelectionRange)){var t=e.type;if(t==="number"){e.type="text"}e.setSelectionRange(0,e.value.length);if(t==="number"){e.type="number"}}else{e.select()}},setPositionAtEnd:function(e){if(BX.type.isElementNode(e)&&e.value.length>0){BX.setCaretPosition(e,e.value.length)}}};BX.UI.EditorTextHelper._current=null;BX.UI.EditorTextHelper.getCurrent=function(){if(!this._current){this._current=new BX.UI.EditorTextHelper}return this._current}}
//# sourceMappingURL=helper.map.js